<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>工程技术生产运行管理系统</title>


    <link rel="stylesheet" type="text/css" href="../../easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../easyui/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="../../css/index.css" />
    <script type="text/javascript" src="../../js/jquery-latest.min.js"></script>
    <script type="text/javascript" src="../../js/index2.js"></script>
    <script type="text/javascript" src="../../easyui/jquery.easyui.min.js"></script>
</head>
<body>
	<!-- 传递导航栏数据data/dr_nav.json -->
	<iframe id="topframe" width="100%" height="80px;" src="" frameborder="0" marginheight="0" marginwidth="0" jsondata="">
	</iframe>
	<input id="jsonmenu" value="" type="hidden"/>
    <div class="center">
        <div id ="layoutdiv" class="easyui-layout" style="width:100%;margin-left: 5px;height: 540px;">
			<div region="west" split="true" title="功能菜单" style="width:200px;" data-options="iconCls: 'icon-tip'">
				<div class="easyui-accordion" data-options="fit:true,border:false" id="menu_left">
				<!-- 这里自动装载需要的左侧二级菜单以及三级菜单 需要维护类似dr.json文件 -->
	            </div>
			</div>
			<div id="content" region="center" title="所在位置：首页 " style="overflow: auto;height: auto;padding: 5px 5px 0px 5px;">
				<!-- 装载专业首页 需要维护 home.html -->
				<iframe id="contentframe" width="100%" height="100%;" src="" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0" >
				</iframe>
			</div>
		</div>
	</div>
	<div region="south" border="true" id="south"><center><strong>@Copyright</strong> 北京中油瑞飞信息技术有限责任公司</center></div>
	<!-- 首页右侧语言菜单 -->
    <div id="language_menu" class="easyui-menu" style="">
        <div id="ch_ZN">简体中文（√）</div>
        <div id="en_US">英语</div>
        <div id="ru">俄语</div>
        <div id="fr">法语</div>
        <div id="es">西班牙语</div>
    </div>
    <!-- 二级菜单 -->
	<div id="menu" style="display: none;">
		
	</div>
	
	<!-- 首页收藏夹 -->
    <div id="coll_menu" style="display: none;position: absolute;z-index: 1;">
	    <div  class="easyui-panel" title="常用资源收藏夹" 
	        style="width:400px;height:200px;padding:10px;">
	        <table cellpadding="0" cellspacing="0" class="table-striped">
	        	<tr>
	        		<td colspan="2">表：</td>
	        	</tr>
	        	<tr>
	        		<td><a href="#">钻井日报</a></td>
	        		<td><a href="#">钻井月报</a></td>
	        	</tr>
	        	<tr>
	        		<td colspan="2">菜单：</td>
	        	</tr>
	        	<tr>
	        		<td><a href="#">钻井日报</a></td>
	        		<td><a href="#">钻井月报</a></td>
	        	</tr>
	        	<tr>
	        		<td colspan="2">电子文档：</td>
	        	</tr>
	        	<tr>
	        		<td><a href="#">牛东2井史</a></td>
	        		<td><a href="#">克深2井史</a></td>
	        	</tr>
	        </table>
		</div>
    </div>

<script type="text/javascript">


$(function () {
	initIframeData();//初始配置文件
	loadLocalJSON('0');//初始加载
	//alert($(document).height());
	/*开始布局*/
	$("#layoutdiv").css("height", $(document).height()-80-$("#south").height());
	$("#content").css("height", $(document).height()-90-$("#south").height());
});

/*设置时间更新*/
setInterval(function(){$("#topframe").contents().find("#time").html(currentTime);},1000);

/*浏览器窗口调整*/
$(window).resize(function() {
	$("#layoutdiv").css("height", $(document).height()-80-$("#south").height());
	$("#content").css("height", $(document).height()-85-$("#south").height());
});

/*显示主页*/
function showIndex(){
	reflashIframe($('#mainframe', parent.document).attr("contentframesrc"));
}

/*写入一级菜单*/
function loadLocalJSON(index){
	//alert('11');
	loadRemoteJSON(index, $("#jsonmenu").val());
}
/*写入二级菜单*/
function load4Menu(index){
	//alert('22');
	loadRemoteJSON(index, $("#jsonmenu").val());
}

/*初始配置数据文件*/
function initIframeData(){
	$('#topframe').attr('jsondata', $('#mainframe', parent.document).attr("topframejsondata"));
	$('#topframe').attr('src', $('#mainframe', parent.document).attr("topframesrc"));
	
	$('#jsonmenu').val($('#mainframe', parent.document).attr("jsonmenu"));
	$('#contentframe').attr('src', $('#mainframe', parent.document).attr("contentframesrc"));
}


</script>

</body>
</html>
